public class Test {
    public void hh() throws RuntimeException{
        System.out.println("hh");
    }
}

class T extends Test{
    public void hh() throws RuntimeException{
        System.out.println("hello");
        throw new RuntimeException();
    }
}

class Y{
    public static void main(String[] args) {
        Test test=new T();
        test.hh();
    }
}
